<?php if(defined('IZ_ACCNAME')) { ?>

     <div class="containerbox" id="login">
        <div class="containertitle"><?php echo STR_LOGIN; ?></div>
        <form method="post" action="<?php echo $_SESSION['IZ_CALURL']; ?>index.php">
          <?php if(!empty($error)) { echo '<div id="errorbox2">'.$error.'</div>'; } ?>
          <label for="username"><?php echo STR_USERNAME; ?><br /><input type="text" name="username" id="username" size="20" /></label><br /><br />
          <label for="password"><?php echo STR_PASSWORD; ?><br /><input type="password" name="pass" size="20" id="password" /></label><br /><br />
          <div class="actions">
            <input type="submit" value="<?php echo STR_LOGIN; ?>" name="login" class="nicebutton" />
          </div>
          <input type="hidden" name="act" value="login" />
          <input type="hidden" name="from" value="<?php echo $_GET['from']; ?>" />
        </form>
      </div> <!-- end login -->

<?php } else {
  // Directly accessed
  header('Location: ../');
} ?>